import request from '@/utils/request'
// 查询所有的分类
export function fetchContentCategories() {
  return request({
    url: '/cms/content/category/list',
    method: 'get',
    baseURL: process.env.VUE_APP_SERVER_BASE_API
  })
}
//新增分类
export function addContentCategory(category) {
  return request({
    url: '/cms/content/category/add',
    method: 'get',
    params: category,
    baseURL: process.env.VUE_APP_SERVER_BASE_API
  })
}
//更新分类
export function updateContentCategory(category) {
  return request({
    url: '/cms/content/category/update',
    method: 'get',
    params: category,
    baseURL: process.env.VUE_APP_SERVER_BASE_API
  })
}
//删除分类
export function deleteContentCategory(id) {
  return request({
    url: '/cms/content/category/delete/'+id,
    method: 'get',
    baseURL: process.env.VUE_APP_SERVER_BASE_API
  })
}